﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Reflection.Metadata;
using System.Text;
using System.Threading.Tasks;

namespace SmartProduction.Domain.客户管理.WorkOrder
{
    /// <summary>
    /// 采购订单
    /// </summary>
    public class Work_CaigouOrder
    {
        [Key]
        /// <summary>
        /// 序号
        /// </summary>
        public int Work__CaigouOrderId { get; set; }

        /// <summary>
        /// 采购编码
        /// </summary>
        public string OrderCode { get; set; } // XSDD264846

        /// <summary>
        /// 采购主题
        /// </summary>
        public string OrderSubject { get; set; } // 新产品销售订单0051

        /// <summary>
        /// 供应商名称
        /// </summary>
        public string CustomerName { get; set; } // 重要客户

        /// <summary>
        /// 采购日期
        /// </summary>
        public DateTime SalesDate { get; set; } // 2022-06-07

        /// <summary>
        /// 总金额
        /// </summary>
        public decimal TotalAmount { get; set; } // 50,000.00

        /// <summary>
        /// 已到票金额
        /// </summary>
        public decimal InvoicedAmount { get; set; } // 10,000.00

        /// <summary>
        /// 到票金额
        /// </summary>
        public decimal CurrentInvoiceAmount { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string SalesPerson { get; set; }

        /// <summary>
        /// 入库状态
        /// </summary>
        public string RukuStatu { get; set; } = "已完成入库";


        /// <summary>
        /// 逻辑删除
        /// </summary>
        public bool IsDelete { get; set; }
    }
}
